/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListStaProduct.java
 *
 * Created on 3 ก.พ. 2553, 2:01:02
 */

package warehouse;

/**
 *
 * @author hj
 */
public class PnlListStaProduct extends javax.swing.JPanel {

    /** Creates new form PnlListStaProduct */
    public PnlListStaProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListStaPro = new javax.swing.JPanel();
        lblHeadListStaPro = new javax.swing.JLabel();
        btnStaProPrint = new javax.swing.JButton();
        btnStaProListSearch = new javax.swing.JButton();
        btnStaProListAdd = new javax.swing.JButton();
        btnStaProListDel = new javax.swing.JButton();
        btnStaProListEdit = new javax.swing.JButton();
        pnlListStaPro = new javax.swing.JPanel();
        lblSProCode = new javax.swing.JLabel();
        lblSProName = new javax.swing.JLabel();
        txtSProCode = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblStaProduct = new javax.swing.JTable();
        rbtStaProPos = new javax.swing.JRadioButton();
        rbtStaProChang = new javax.swing.JRadioButton();
        rbtStaProInventory = new javax.swing.JRadioButton();
        rbtStaProMend = new javax.swing.JRadioButton();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListStaPro.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListStaPro.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadListStaPro.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListStaPro.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListStaPro.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadListStaPro.setText("จัดการสถานะสินค้า");

        btnStaProPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnStaProPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnStaProPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnStaProPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        btnStaProListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnStaProListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnStaProListDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnStaProListEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnStaProListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnStaProListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnStaProListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnStaProListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        javax.swing.GroupLayout pnlHeadListStaProLayout = new javax.swing.GroupLayout(pnlHeadListStaPro);
        pnlHeadListStaPro.setLayout(pnlHeadListStaProLayout);
        pnlHeadListStaProLayout.setHorizontalGroup(
            pnlHeadListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadListStaPro)
                    .addGroup(pnlHeadListStaProLayout.createSequentialGroup()
                        .addComponent(btnStaProListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btnStaProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(440, Short.MAX_VALUE))
        );
        pnlHeadListStaProLayout.setVerticalGroup(
            pnlHeadListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListStaProLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadListStaPro)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnStaProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        add(pnlHeadListStaPro, java.awt.BorderLayout.PAGE_START);

        lblSProCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProCode.setText("รหัสสถานะสินค้า :");

        lblSProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProName.setText("สถานะสินค้า :");

        txtSProCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtSProCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtSProCodeActionPerformed(evt);
            }
        });

        tblStaProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "รหัสสถานะ", "สถานะ"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblStaProduct);

        rbtStaProPos.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProPos.setText("หน้าร้าน");
        rbtStaProPos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProPosActionPerformed(evt);
            }
        });

        rbtStaProChang.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProChang.setText("เครม");
        rbtStaProChang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProChangActionPerformed(evt);
            }
        });

        rbtStaProInventory.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProInventory.setText("คลัง");
        rbtStaProInventory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProInventoryActionPerformed(evt);
            }
        });

        rbtStaProMend.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProMend.setText("ซ่อม");
        rbtStaProMend.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProMendActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlListStaProLayout = new javax.swing.GroupLayout(pnlListStaPro);
        pnlListStaPro.setLayout(pnlListStaProLayout);
        pnlListStaProLayout.setHorizontalGroup(
            pnlListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblSProCode)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(txtSProCode, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblSProName)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtStaProInventory)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtStaProPos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtStaProMend)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtStaProChang)
                .addGap(153, 153, 153))
            .addGroup(pnlListStaProLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlListStaProLayout.setVerticalGroup(
            pnlListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSProCode)
                    .addComponent(txtSProCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSProName)
                    .addComponent(rbtStaProInventory)
                    .addComponent(rbtStaProPos)
                    .addComponent(rbtStaProMend)
                    .addComponent(rbtStaProChang))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(225, Short.MAX_VALUE))
        );

        add(pnlListStaPro, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtSProCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSProCodeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtSProCodeActionPerformed

    private void rbtStaProChangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProChangActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProChangActionPerformed

    private void rbtStaProMendActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProMendActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProMendActionPerformed

    private void rbtStaProPosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProPosActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProPosActionPerformed

    private void rbtStaProInventoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProInventoryActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProInventoryActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnStaProListAdd;
    private javax.swing.JButton btnStaProListDel;
    private javax.swing.JButton btnStaProListEdit;
    private javax.swing.JButton btnStaProListSearch;
    private javax.swing.JButton btnStaProPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblHeadListStaPro;
    private javax.swing.JLabel lblSProCode;
    private javax.swing.JLabel lblSProName;
    private javax.swing.JPanel pnlHeadListStaPro;
    private javax.swing.JPanel pnlListStaPro;
    private javax.swing.JRadioButton rbtStaProChang;
    private javax.swing.JRadioButton rbtStaProInventory;
    private javax.swing.JRadioButton rbtStaProMend;
    private javax.swing.JRadioButton rbtStaProPos;
    private javax.swing.JTable tblStaProduct;
    private javax.swing.JTextField txtSProCode;
    // End of variables declaration//GEN-END:variables

}
